package leetCode.offer03;

public class Solution1 implements Solution {

    @Override
    public int findRepeatNumber(int[] nums) {
        int[] help = new int[nums.length];
        for (int num : nums) {
            if (help[num] == 1) {
                return num;
            }
            help[num] = 1;
        }
        return 1;
    }

}
